<?php
declare (strict_types = 1);

namespace app;
/**
 * 控制器基础类
 */
class BaseController
{   
    
    public function __construct()
    {
        $this->initialize();
    }
    // 初始化
    protected function initialize()
    {} 
    protected function result($data=[],$status=200,$msg='ok',$httpcode = 200) {
        return json(['status' => $status, 'msg' => $msg, 'data' => $data],$httpcode);
    }
   
}
